#ifndef WIFI_H
#define WIFI_H

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "Product_Config.h"

#include "esp_system.h"

#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "freertos/event_groups.h"


#include "esp_log.h"
#include "esp_wifi.h"
#include "esp_event.h"
#include "esp_mac.h"

#include "esp_blufi_api.h"
#include "blufi_example.h"

#include "esp_blufi.h"

#include "../OTA/ota_handle.h"
#include "my_wifi.h"

extern bool gl_sta_connected;
extern bool gl_sta_got_ip;
extern bool ble_is_connected;
extern u8 gl_sta_bssid[6];
extern u8 gl_sta_ssid[32];
extern int gl_sta_ssid_len;
extern wifi_sta_list_t gl_sta_list;
extern bool gl_sta_is_connecting;
extern esp_blufi_extra_info_t gl_sta_conn_info;
extern wifi_config_t sta_config;
extern wifi_config_t ap_config;
void wifi_enable();
void example_wifi_connect(void);
bool example_wifi_reconnect(void);
int softap_get_current_connection_number();
void set_wifi_connect_status(u8 status);
u8 get_wifi_connect_status();
#endif 